package com.acme.bankapp.domain.account;

import com.acme.bankapp.domain.bank.BankException;

@SuppressWarnings("serial")
public class AccountExistsException extends BankException {

	public AccountExistsException(Account account) {
		super( String.format("account with id %d already exists", account.getId()) );
	}

	public AccountExistsException(String message, Throwable cause) {
		super(message, cause);
	}

	public AccountExistsException(String message) {
		super(message);
	}

	public AccountExistsException(Throwable cause) {
		super(cause);
	}



}
